package com.atguigu.glkt.vod.service;

import com.atguigu.ggkt.model.vod.Chapter;
import com.atguigu.ggkt.vo.vod.ChapterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author shaoxuan
 * @since 2022-07-12
 */
public interface ChapterService extends IService<Chapter> {

    /**
     * 1 获取章节小结列表
     * @param courseId
     * @return
     */
    List<ChapterVo> getNestedTreeList(String courseId);

    /**
     * 根据课程id删除章节
     * @param id
     */
    void removeVideoByCourseId(Long id);
}
